Unable to Locate Device ID in Studio or via regutil.exe

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