If I understand your question correctly (and I might not), then I think that you wish to determine which libraries are being used by a particular application. In this case ldd
is your friend.
ldd /path/to/binary
gparted
is actually a script (well it is on my Debian Wheezy box), and to determine the executables which are being called, simply cat /usr/sbin/gparted
and read the script. When you find the exectuable files you are interested in, you can run ldd to determine which libraries are being linked to.
If you want a more verbose answer for a particular application, you can always download the source code if the software is open source, and have a look there. Usually you will find a file called INSTALL
( you can get from package developer's website or in most GNU/Linux distributions you may find it also in /usr/share/doc/
) which tell you which libraries the software depends on before you can compile it.