do you mean like remotely from another device ?
or you want from the pi to know if a video is playing?
for remote control you have those option:
https://docs.videolan.me/vlc-user/3.0/e ... index.html
or via telnet :
https://wiki.videolan.org/Documentation:Modules/rc/