Here are the trick that I usually use (from the most intuitive to the least intuitive):
General Info, Web server, CMS, OS…
http://builtwith.com/ http://news.netcraft.com/ http://www.quarkbase.com/ http://w3techs.com/sites
1. If you look at the source code , if you are familiar with WordPress, Drupal and other CMS you can easily find them by looking at the source code.
2. The CSS files can reveal a lot of information about the framework being used.