It is irrelevant that it's a console app - the UI doesn't matter or affect the ID you generate in any way.
Start here:
C# Hardware ID - Google Search[
^]
But don't waste too much time on it: software protection methods and easy to break (look at Adobe: they spend manyears implementing copy protection in Photoshop and the same day they release a new version, hacks are available on crack sites).
Protection has to be a balance of three things: the effort you put into it; the sales it generates as a result of not being able to copy it; the aggravation it causes legitimate users. And the last is significant: it's easy to get a rep for not letting legitimate users use the product they paid for, and very hard to get rid of it.
So think carefully how badly you need to protect your product, and go with a hardware dongle if it's that important.