That's an absolutely fantastic idea. Someone should raise this great point to companies who make ATMs.
They are already connected to a network, so I don’t think it should be too difficult to engineer.
If they are worried about people just pushing the button for fun, then it could come up on the touch screen after you enter your PIN.