This is a more difficult task that you may have realized. In order to get the browsing history of any browser, you will need something like a system proxy. If you're looking for a good enough solution, consider using the Fiddler Core API
]. Fiddler is a Microsoft API that creates a web proxy that will trap all web browsing traffic.
Because its a simple web proxy, if you're users are using a tool such as Ultra Surf
], they will be able to get around/bypass the Fiddler proxy. There are other solutions that get much deeper into the core of Windows, but I'll leave that to Smarter People
Good luck, I didn't provide any code, but I sure hope you feel I sent you in the right direction.