Maybe just look for the installed software?
Look in the registry for the uninstall strings.
Look with WMI for the installed software.
If you need an idea about scripts, maybe post a request in tha basic scripting forum?