List of tabs in workspace

Hello,

I would like to know if an database is open in my workspace.

If my database is open, I would like to open this database in uidoc in the same tab and no, I open my database in the new tabs.

How I can recover the list of workspace tab?

How I can affect this tabs to the uidoc?

Thanks in adavance

Sylvain