Reading pendant freedrive button status in URCap

Hey, is there anyway to read the pendant freedrive button status (pressed - released) in a URCap with URScript? I was hoping to use the button for implementing a dead-man’s-switch type of behavior for an external device.