using below code you can get Processor id or CPU id of the system using C# or Vb.NET ... Get processor ...
www.dotnetspark.com