On a local machine use the GetComputerName api function to retrieve you local netbios name