Environment.MachineName
using System; class MainClass { public static void Main() { Console.WriteLine("Machine Name: {0}", Environment.MachineName); Console.WriteLine("Version: {0}", Environment.Version); } }