The topic covers it I guess. Just wondering the best way to detect whether or not something is running on an emulator rather than real hardware ? (in code I mean, obviously eyes would suffice otherwise 
There isn't a reliable way to detect you are running in an emulator. You might be able to come up with a fingerprint analysis of incorrect behaviour, but that relies on you updating your code if an emulator manages to fix the behaviour.
It would also require you to do alot of testing on real hardware, as some of your tests might trigger a false positive.
I guess it depends on what you want to do & why.