Are you trying to get the H/W information of server or Client?
If Client, you can not read the registry of Client machine because browser process has very limited access to Client machine.One way you might read,You can use ActiveX but it works with only IE.
and if on server,
Have a look to the link
Reading and writing in Registry