Inspect Android Browser elements like Desktop Chrome Inspector
You can't do this with the old "Android browser", but you can in Chrome, which is downloadable from Google Play and comes installed on all recent Android devices. The feature you're looking for is called Chrome Remote Debugging, and it relies on having Chrome on your desktop and ADB enabled and connected.