Lego EV3 - Get output device type, opOUTPUT_GET_TYPE
Checking the source code, it appears that the opOutput_Get_Type command is not implemented. In both links, it is mentioned in the comments, but there is nothing in the actual code.

Unfortunately, I am not finding a different way to get this information.