Call Duration Messure / after some time #beep

My project would be to messure call duration and for example after 8 minutes should be beep (sound, signal).

My problem is how to make software to start count as soon as computer is in call.

How can app recognize if computer is in call? / is it even possible?

Call Software: Genesys

Platform: Win 10

Thank you in advance