To list all programs this certainly works in Windows 7 and 10, but I cannot remember if it will work in XP, try it you can do no harm.
From an elevated Command Prompt, i.e. click the Windows Orb (Start) > All Programs > Accessories and right-click Command Prompt, then ‘Run as Administrator’. Type wmic product get name,version |clip (note the four spaces) and press Enter. It will take a little time to gather the information. When it has finished, open Notepad or Word, etc. and paste (Ctrl+V) the results into it.