From the FAQ:
Q: How can I see into factory buildings from the outside?
A: Research the "Factory preview" technology, and a toggle button with a factory building symbol will appear in the top left of your GUI. Whenever this button is toggled on and you hover over a factory building from outside, a preview of the interior of the factory building will appear in the top left corner of your screen.