Hi newcomer and welcome to the Tom's hardware forum.
Well, has been a long time since my last program, but lets see.
You need a program that call the specific file that ijack says, and compared this file with a definition that you can made, for example
....if (a==b)
{
cout<<"You have a Workstation";
}
else if
{
cout<<"You have a server station";
}
a & b are char
I think that is something like this, like i said, has been a long time since my last program. Review the structure and syntax and start to do the program.