What is the study of extraterrestrial life and the effects of extraterrestrial surroundings on living organisms?

This field is called "exobiology".