If you've got a computer plugged in, or can run and view Gcode through the screen, M119 will show the state of endstops.