How to detect WordPress Themes and Plugins

Have you visited a website and loved the theme they are using or wondered if its on wordPress?