To get the width of the "invisible" part, simply subtract the total width of the document from the width of the visible window:
jQuery(document).width() - jQuery(window).width()

As you write, $(document).width()is the total width, and $(window).width()is the width that is currently visible.
Chrome, Firefox, Internet Explorer Safari.