Relevance Code for installed applications

Hello All, i need a relevance code where i can get computer name and installed software as an output. I am unable to add installed application with (names of it) of bes computers.
Please help.