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 appropriately uses a semicolon before "however" and includes a comma after "however."