I use a license key system in which I generate a key based on a unique code generated on the user's machine. I would like to append the code with something that identifies the machine that generated the code. How can I extract the following information programatically from the user's machine?

CPU serial number
HDD serial number
Computer Name
User Name

Thanks for any help!