Blockchain.info and others basically read the blocks and makes a database following the inputs/outputs.You need a block explorer for what you want.
Is there a way to read blocks that way? I'm curious as to how blockchain.info went about doing this from a technical perspective. I know I have the blocks stored in my bitcoin folder, but I don't know of an easy way to read them.