I suppose it could, similar to what I did to see when a library update is finished in the script I made [here] although you might find it better to use whatever mechanism the web interface uses for it playing status. I think that just listens in on a stream of messaging Kodi sends out. IIR figuring that one out was a bit over my head so I just polled instead.
You could probably also just tail -f | grep the Kodi log and trigger what you want from that with a local script.