Input 4 next to E-Stop, I believe.
Your probe connects to Pin S.
Your probe gets connected to ground on the machine, when required.
The input is already protected against spikes. No capacitor required. It is on the PCB already as is a 2K pullup resistor.
Naturally the config file needs to reflect this input in the setup screens.
It will probably need to be active low.