From ESOUI Wiki
This function returns true if the player has the Guild Bank open (even if they're on the "deposit" tab of the menu rather than the "withdraw" tab). It returns false otherwise.
if IsGuildBankOpen() then d("Be polite to your fellow guild members: only take what you need!") end