Here is a little plug-in for WordPress that I created to grab the USER_AGENT header string. It is very simple at best, so don’t expect to move any mountains with it. You can read more about it on The User Agent Identify page.