I am not certain about STOP LIMIT orders outside of regular trading hours for the YM, as the YM doesn't trade on Globex (of which I am not certain however).
For the ES (which trades on Globex), you can certainly do this. You just need to make sure the STOP LIMIT order is marked for execution...