Hey Waleed,
Welcome to the Java Forums.
In older versions of Java you used to be able to use:
Systems.getProperty("browser");
Systems.getProperty("browser.version");
Systems.getProperty("browser.vendor");
But in the new versions of Java, this has been removed for security reasons.
Because of this I am no longer sure how to get the browser information you require. I will have a look around and see what I can find...