After reading a lot of answers about how to get local user name and a bunch of other unrelated things, I found that the answer is actually quite simple:
Get-ConnectionInformation | fl *user*