You have to take a real close look at the guinea pigs privates area but for a girl you should see a vagina and for a boy you should see a tiny penis and sometimes you might have to squeeze that male guinea pigs penis area to get the male guinea pigs penis to extrude.
Here's an image of a male Guinea Pig.
