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.
Solutions that come to my mind:
(some WMI interface code for reference)
Edit: I assumed your OS was MS Windows :)
Go Get Microsoft's Scriptomatic
Run it, Select the appropriate class from the dropdown (WIN32_BIOS)
It will produce the necessary Python/WMI code for you. (It will also generate VBScript, Perl, and JScript)
Try this library: Hardware ID Extractor
Small description of the tool:
The Hardware ID Extractor is a Microsoft Windows program that shows data about your computer's hardware:
Hard disk:
Hard drive ID (unique hardware serial number written in drive's IDE electronic chip)
Partition ID (volume serial number)
CPU:
Physical memory: