Well, I suppose you could construct the grid manually -- that's probably not that hard if you know the dimensions in page units of where you want to place the grid.
To interrogate pixel-by-pixel? Trickier, since Illustrator doesn't have any notion of pixels exposed -- it's pure vector. I can only imagine you'd have to rasterize what you have there and then inspect *that*.