Only way to really test this is checking the user agent. But its not a sure-fire solution. You could also check the resolution but that’s easily faked as well.
Take a look at this similar question. The site mentioned in the answer offers a jQuery script that you might want to take a look at:
Register Hereor login if you are already a member