Environment.MachineName
using System; class MainClass { public static void Main() { Console.WriteLine("Machine name : " + Environment.MachineName); } }