Is it by any means possible to read the browser session id using javascript?
Yes. As the session ID is either transported over the URL (document.location.href) or via a cookie (document.cookie), you could check both for the presence of a session ID.
document.location.href
document.cookie