If you know the name of the processor, you can do something like this:
if ($modx->actions['resource/update']) == $_GET['a']) {
}
The action variable (the 'a') may also be configurable (not sure). If so, and you want to distribute your code, you'd want to take that into account too.