If you are referring to RDP sessions then I believe you would have to run this from a command line within the VM, e.g. the qwinsta command.
If you are using Azure Virtual Desktop to provide user access then this has a build in session monitoring tool where you can see the active sessions.