LocalDB, DB or OnlineDB object?

Is there a way to determine on which instance (LocalDB, DB or OnlineDB) an object belongs?

duplicate of Is there is a way in the platform to know if an object is LocalDB or OnlineDB?