The correctly punctuated sentence 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 uses a semicolon before "however" to separate two independent clauses and includes a comma after "however," which is appropriate in this context.