Extract the daemon name?
Won't give the currency unit (BTC, LTC, DOGE, etc).
Why?
bitcoind
litecoind
dogecoind
etc
all shows the name based on the name of the daemon you are querying (or bitcoin-qt etc). Or if you know the wallet data directory, it will include something unique that most likely includes the name.