Pretty much every DAW I know of does not have this functionality. Although that wouldn't mean that it would be impossible.
If - for instance - you need this functionality for use during a live show, you could get around this problem using MIDI. If you add a MIDI track to your project, that plays MIDI events that are somehow rerouted back to your DAW as a control surface, you could simply add the appropriate command on that track that tells your DAW to stop. Just make sure the track is enabled, and the routing is correct, and you should be good to go.
Depending on what software you are using, you might even be able to do this with no additional hardware, but I am not sure about that at all, as MIDI is not my daily business.