Here's the solution I was pointed to on the OMAC google group (thanks Jesse Chappell
static BOOL isVirtualEndpoint(MIDIEndpointRef ref)
{
MIDIEntityRef entity = 0;
MIDIEndpointGetEntity(ref, &entity);
if (entity)
{
return NO;
}
else
{
return YES;
}
}