You can get the model identifier of an iOS device using the uname
system call, as described in several answers here on Stack Overflow (such as this one).
If you're running in the simulator, this will tell you the architecture of your computer. Is there any way of finding out the model it is simulating?