Retrieving font names from a .TTF file

Hey all!
I was wondering if any of you guys knew how to extract a truetype font name
out of a ttf file?
eg...
I have the file og.ttf
how would i get the name (Ogilvie) out of it?

thanks in advance!

bye!