This was asked during an interview.
One of my answers was Endianes (though this will just tell if the underlying CPU is little or big Endian and not the ISA type).
I cannot embed assembly code or CPUID sort of thing.
I was thinking about memory model as ARM is weakly ordered and x86 is TSO. But I cannot think of a C++ program that will help me differentiate this.