In this context, it means "steal." It's fairly common to use it that way, but it is very informal, almost slang.
It suggests either a small theft, or to take something in a sly, sneaky, or surreptitious way.
"When the teacher was out of the room I was able to cop a peek at the exam..."