I just started setting up a centos server today and noticed that the default version of python on centos is set to 2.6.6. I want to use python 2.7 instead. I googled around and
compgen -c python | grep -P '^python\d'
This lists some other python things too, But hey, You can identify all python versions among them.