As always, C2 relies on HTML5 support by browsers vendors.
As far as I'm aware, browsers do not support scanners. If you don't have access to the scanner in the browser, you don't have access to it in Construct 2.
So unless you find some JavaScript library that actually does provide you access to the scanner and implement it using C2's SDK, I don't think this is feasible.