Rule one about Servlets: they only know about the data passed to them as part of a request. You can't read the current state of the browser from a servlet.
Assuming you are sending a request however. You can get a whole bunch of information about the request from the HttpRequest class. Have a read through the API. [ December 23, 2008: Message edited by: Paul Sturrock ]