Indeed there is no function in the box for this.

I used
Code:
        Get ConnectionIdInfo of ghoConnection sId to tConnectionVariable
        Move tConnectionVariable.sString to soLogin
to get the useful bit of the connection string, then pulled the database name off that.
I was hoping for an "In the Box" method..