The sentence that is punctuated correctly is:
"Scientists know that Earth has been impacted by large asteroids in the past; however, what happens if a major asteroid hits Earth now?"
This sentence correctly uses a semicolon before "however" because it connects two independent clauses.