The captains of his majesty's navy, indeed, or any other commissioned officers, appointed by the board of admiralty, may inquire into the condition of the forts and garrisons, and report their observations to that board.