This isn't something that is available via the JS API (at best, it would be on a per session basis, which probably wouldn't be that useful, and then you'd need to persist this info somewhere).
This is something that you could track via your web server logs. The specifics of how to do it will depend on the your web server you're using.