You have to run below command and you are done:
This command will put list of installed software into a csv file. Below image will clear it more for you:
As shown above, you can export the list of installed software into any kind of file. Txt, Doc, CSV and so on.
Another way to do this is through WMI api.
You need to open cmd.exe in administrator mode and then run following commands:
Hope this will help you.