A quick, visual guide to the editions, by logo:
[first author's note: I'm throwing this up here to "seed" the process, so to say. Please feel free to add to this answer as is easy/convenient for you. Please note that imgur resizing is no longer working, there's a hack in the source of this post you can use. -n60]
[note: there is no effort made here to explain or compare editions: please see Q/A like What are the big differences between the D&D editions? or How many editions of Dungeons & Dragons are there? for such discussion.]
The "Dungeons & Dragons" logo has changed pretty distinctively among editions and is pretty-consistently used within an edition, and so provides a good starting point. (Of course there are exceptions, most currently the "special edition" covers for 5e.)
Pictured below are photos of the most common logo or two for each edition, both on the books' spines and front covers.
The "spine" logo also appears on the lower-left part of most covers, and both these logos are in the corresponding places on the Starter Set box.
5e also released a special edition black cover with distinctive artwork. Notably, the stylized dragon ampersand (&) in the logo is the same as the original 5e books. The black covers do not have the spine artwork on the cover. The PHB is red, the MM light blue, and the DMG dark purple.
3.0/3.5 used the same logo; the logo varied a bit in execution, but is fundamentally unchanged from book to book. Pictured below are two variations, spines and covers.
Books for 3.5 will say "v3.5" both on the spine and on the cover. The (few) examples I own have the "v3.5" at the bottom of the spine and in the lower part of the cover, well away from the main logo.
Books for 3e just have the logo, no version-marker.
The logo as presented in full-color (corebooks, for example) and foil.
Two fairly different logos; best I can surmise it's the "when" of the book's design that determines the logo used. (The newer logo establishing the now-iconic ampersand-with-dragon's-breath!)