Stdweb, infer if tablet

Problem: figure out if browser is tablet

Pure JS solution: https://stackoverflow.com/questions/16520186/how-to-detect-tablet-mobile-desktop-tv-using-javascript

It uses navigator.userAgent

This appears to be the same object as https://developer.mozilla.org/en-US/docs/Web/API/Navigator

Is there anyway to retrieve this via stdweb ?