Hello and welcome to the ranch.
The database will have information on connections, but only as much information as the database cares about, who has the connection, how long it has been open, how long inactive, maybe amount of information transfered (I am only guessing here).
Connection pools are entirely a way in the
java to manange the database connection, so the database doesn't even know they exist.
This sort of information isn't avaiable to java really, the database will have administrative tools to dispaly you this information, it may also have methods to allow you to keep track of the history. But this is all completely database vendor specific.
There have been previous threads on here asking similar questions you may want to go and read them, for any further information supplied to them.