The Earth could be habitable for another three billion years. Is there time to escape? Guy Consolmagno investigates.