How to access database icon's link info in the workspace?

My understanding is Notes does not provide a way to access an icon’s link info, but I’ve seen people mentioning using some C or C++ API to accomplish the task. Anybody knows how?

This is related to server migration.