May i know if there are any browsers (necessarily not of commercial use) which contain URLs in their history?
As far as i understood what you said, my answer is:
I think all browsers has some kind of history functionality. (For example, Firefox has History menu and it lists latest visited urls there.) You just need to find how they keep that on computer and try to reach it with Java.