You can make it as compex as you want.
If they are watching a cam, there must be some script feeding data to the client, so that script must know who's viewing.
You could hack into the OS to see which ports are open and to which remote IP's, but that doesn't tell you much about which user is using that connection.
(IP's can be shared between clients).
But, what do you need this information for?