How can I tell which cards or sets are currently legal in various formats?
I would refer you to the following page:

http://magic.wizards.com/en/game-info/gameplay/rules-and-formats/formats

I think you'll find everything you need there!  Both lists of legal sets for each format, and lists of individual cards that are banned or restricted in those formats.