Im looking for a simple way to obtain a unique identifier for a computer system. I need a number that wont change when the NIC fails or the OS needs to be reinstalled. Is there a way to get the CPU's unique serial number? Or maybe some Motherboard chipset ID number?
How would i go about querying this value from within my code?

Thanks for your time.