For benefit of others, here is what I found up to date as per todays browser needs. Still doesnt talk about the OS and other details but I guess can be built.
Detecting User-agent for a browser
Have you seen Google Analytics report about the type of browsers and Operating systems accessing a web page. Thats possibly one of the reasons why you would want to store user-agent.
We are also storing user-agent for similar statistics, it gives more details about the type of users accessing your web site and based on that you can decide some future strategies.
I hope this helps.