When a virtual is configured to act as a VNC server, you can view a list of the VNC clients that are remotely connected to the virtual machine and find out how long they have been connected.

Configure the virtual machine to act as a VNC server. See Configure a Virtual Machine as a VNC Server.

Select the virtual machine and select VM > Manage > VNC Connections.