<p>How do you extract an HD and Bios Unique ID, using python script?</p>

Solutions that come to my mind:
use
Win32 Python Extensions
and call Windows APIs to do that directly
Use a WMI-wrapper for Python
(some
WMI interface code
for reference)
Edit
: I assumed your OS was MS Windows :)