How do you extract an HD and Bios Unique ID, using python script?
On Linux, look in the /proc directory. You'll have to parse the files to find what you are looking for.
This might help.