4 AAA 1,5 volt vs 5v 300mah dc power supply
The 5 volt supply should work.  The lamp probably woon't be quite as bright as with fresh AAA cells, but the AAA cells would drop to, or below, 5 volts with use, so even with batteries, the lamp won't maintain full brightness.