They would know if they see anything like traces of water or anything else that would be nessecary for a living organism to have. They look for these with technology like the hubble telescope as well as the drone on Mars to gather as much information as possible.