If your computer is still operational:
Visit http://www.belarc.com/free_download.html and download the free
Belarc Advisor. After running the program, look under the section titled
"Software Licenses".
If your computer is not operational:
How to Replace Lost, Broken, or Missing Microsoft Software or Hardware
http://support.microsoft.com/kb/326246