How to find User Agent information using velocity

I need to find user agent information in a widget.  Is there a way we can do it using velocity? 

Any advise or guidance would be greatly appreciated.