Not likely...
Early detection is not likely. The definition of an Electro-Magnetic Pulse (EMP) is a surge of electromagnetic energy with a very rapid (nanosecond) rise time. This very short rise time results in many harmonics of high intensity. These harmonics can induce currents on antennae (such as tracings on PCBs) that happen to be of the correct length to receive the harmonic. These induced currents anr generally of several orders of magnitude higher than ciucuitry attached to these antennae (tracings) are expecting to see, and the components burn out (sometimes spectacularly).
Given the short(!) risetime of the pulse, and the fact that it is electromagnetic (which means no "bow-wave" effect), early warning is nigh-on impossible. Your best bet is a high-frequency filter that disconnects you from the grid on detection of a large spike of energy above a certain frequency (say 50Khz). Behind that, another, bigger, lower frequency filter that has an fc of about 1Khz. This would absorb the energy that would come down the line until the higher frequency filter isolates the grid. Not exactly early warning, but better than nothing.
jb4
(Resistance is not futile...)