I think you can only get that from client side (Javascript), a workaround
could be to get from javascript and then post it back (you can use a hidden
field to store that info, or you could use an out of bound call, or just
using javascript and DOM update your page). About how to do that using
Javascript: