The Add/Remove program in control panel lists all the program install on the computer. Where can I read this information on the registry ?

I want to write an application which scan the computer to know which software are installed on that computer.

Thanks.