A couple of techniques for getting browser and operating system information.
View tutorial
Navigator.userAgent Detect.js