At v10 there is a very Arcpy way of getting the installation directory for ArcGIS Desktop. It's very easy and it goes as follows:
Now we want to see what software is installed on the machine:
You'll ge a list of software installed on the machine.
Happy Coding!