There is no CLI command for this in core.
For the XML/JSON APIs, the following works:
/computer/XYZ/api/xml?tree=executors[currentExecutable[*]]
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-use...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.