The recommended/standard way is to use, as
cdarke says, the
PERL5LIB ( or
PERLLIB if your perl is old enough) environment variable - well that's how alternative location(s) are specified to perl in a code independent manner.
How ever, if, as your question implies, you need to know from whence a library was loaded, use the global hash %INC - see Predefined Names for further details.
A user level that continues to overstate my experience :-))