Chris Sullo the inventor of popular website vulnerability scanning tool "Nikto" made another tool "CMS Explorer" to analyse what CMS is in the backbone of a Website.
Visit : http://security.sunera.com/2010/03/cms-explorer-or-whats-that-cms-running.html
Already there is another Mozzila FireFox Add-on Called "Wappalyzer" which can do the same. Check it out at http://wappalyzer.com/