A lot of us use the Ruida controller to handle that, but I don’t think it’s available in the grbl stuff.
I doubt there is an api to call and set up some kind of alarm/notification for windows/mac/linux OSs.
Lightburn would have to kick off something on your computer and not on your laser.
@LightBurn would be the best to answer this specifically.
Good luck…