If you are running a package manager of some sort, then its database will tell you the reverse dependencies, eg for an apt managed system
Code:
apt-cache rdepends package-name
Of course, if you are using a package manager, you shouldn't be ending up with unused libraries in the first place!
If you aren't running a package manager, then scripting a system wide
ldd is perhaps the most obvious way to do it; there isn't going to be a database of such dependencies. Well, of course there may be databases for an entire distro, but since you will only have a subset of the applications, that won't help you.