Code:
http://www.microsoft.com/resources/howtotell/ww/windows/default.mspx
What I found more interesting is that if you allow it, the page installs an ActiveX control called ProductIDGatherer.WindowsGather which is contained in a file called ProductIDGather.dll.
I would be interested to know that this ActiveX control actually does.