Modeling the Space Weather Environment of Terrestrial Exoplanets