In theory, yes. In practice, probably not.
In theory you could do an XHR head request to the URL, then check the location header to see if what you asked for is what you ended up getting. XHR will automatically follow 301/302 redirects, so there's no use checking the status code - Is it possible for XHR HEAD requests to not follow redirects (301 302)
In practice, unless the domain you're asking is your domain, or has a Access-Control-Allow-Origin
header (I think it's header), the request will fail due to cross site request restrictions. HEAD XMLHttpRequest on Chromium
If you've got access to the server running your tool, you should be able to whip up a "proxy" page that issues the HEAD request, then you can XHR call your server page and it would return where the HEAD request said you'd end up.