Astonishingly, we can identify molecules present in the atmospheres of exoplanets.

Source: How astronomers plan to detect the signatures of alien life in the atmospheres of distant planets