Fetching details from the dictionary...

to peek (through a keyhole, gap, etc.)
to look down into (a ravine, etc.)
to peek into (a shop, bookstore, etc.)
to sneak a look at; to take a quick look at
to peep (through a telescope, microscope, etc.)
to stick out (a scarf from a collar, etc.); to peek through (sky through a forest canopy, etc.)
to examine (an expression); to study (a face)
好奇心旺盛な子供が穴から中を覗いた。
The child peeked inside through the hole.
天体観測で望遠鏡を使って星を覗いている。
I am looking at stars through a telescope.
窓からそっと外を覗いてみた。
I quietly peeked outside through the window.