Re: Detection. And then ....?
I believe you can reduce the risk to satellites by turning them off, before the CME hits. For power companies on Earth, there's also stuff they can do to mitigate the risk, should a big one be heading our way.
So yes, prep time is useful.
The ISS has got the ships, which because they're designed for re-entry have thicker walls - especially if you can angle them heatsheild to the sun. I believe they shelter in these for both potential solar events and any risk of objects colliding with ISS. With enough warning you could also bring them all home, if the ships weren'd deemed to give enough protection.
If a manned mission is on its way to the Moon, there may not be much we can do. Although even there, putting on extra speed, so the astronauts can get back to Earth, and treatment, quicker might make a difference.