You'd also need to identify the size of the scroll wheel, which is particularly hard if the user has multiple input devices and you don't even know which one they used :)
Some system-level code would be ideal here. I wonder if, say, Apple logs this info locally (iPhone, iPad, Mac) for touching the screen, the trackpad, or moving a mouse across a surface.