The High-Energy Environment around M dwarfs with Exoplanets