Over the last 14 years, we have built and continue to build an extremely extensive Browser Detection API. The API also provides useful information such as the latest browser and operating system version numbers.
On the homepage of whatismybrowser.com we show a read out of heaps of other stuff which your browser can detect. We've made the Javascript that we use for this freely available, so you can use it on your own site now too.