Thousands of planets have been discovered beyond our solar system, offering clues to where life might thrive and whether Earth is truly unique.