Try below approach to get the Device Name from studio: It returns string value System.Net.Dns.GetHostName or Environment.MachineName
To get Device Id