The instruction
SPxPoll2 3,!CPU
will return the board's type number in U0 (high byte) and U1 (low byte). This is the same number as reported in the reFlash utility. It will vary with different numbers of XPice boards connected.
The I/O configuration provides more detailed information.