I am not sure if this is what you are looking for but her is an example
shane@marsala shane $ whereis gaim
gaim: /usr/bin/gaim /usr/lib/gaim /usr/man/man1/gaim.1.gz /usr/share/man/man1/gaim.1.gz
/usr/bin is usually where the executable is, the one that starts the program. in my example /usr/lib is where the program is stored.