It is possible to empty mags out of Barrels and get the bullets into your inventory - while the barrels lid is closed.
Only testet with M1911 and Glock mags and yellow barrel. Might work with all types of mags and barrels.
Of couse you could open the lid, and get the bullits on the normal way, but its not very logical the get them while the lid is closed... :-)