At the very least there's enough neutrino detectors on earth that we should have some warning a while before we can see it happen. (neutrinos are less affected by gravity while travelling away from the exploding star so they'll reach us before the light does)
> The SuperNova Early Warning System (SNEWS) is a network of neutrino detectors designed to give early warning to astronomers in the event of a supernova in the Milky Way, our home galaxy, or in a nearby galaxy such as the Large Magellanic Cloud or the Canis Major Dwarf Galaxy.