I'm trying to get the CPU serial or motherboard serial using C or Python for licensing purposes. Is it possible?
I'm using Linux.
Under Linux, you could use "lshw -quiet -xml" and parse its output. You'll find plenty of system information here: cpuid, motherboard id and much more.
Getting CPU or motherboard serial number?