You should use UserPrincipal.DisplayName
:
System.DirectoryServices.AccountManagement.UserPrincipal.Current.DisplayName
To do so, you’ll need to and add a reference to System.DirectoryServices.AccountManagement.dll
from your project.
Note: Doesn’t work when machine is unplugged from the network or domain server is not reachable.