You would need to scale the voltage down, using an isolation transformer would probably be best as you could drop the voltage and isolate at the same time, then I'd suggest feeding it to an opamp setup to provide an absolute output voltage along with a sign indicator as the ADC can only handle positive voltages. With a practical ADC resolution of 8 bits you'll be able to sense the mains power to within 2-3 volts, since you're talking about surges though you'll need to even with isolation transformer make sure that whatever fluctuations are produced can't damage the circuit.