Attach a conduit fitting to the center of the fronts of the top and bottom shelves (example: https://www.lowes.com/pd/Sigma-Elect...itting/1100267 )
Then run a cable lock through both, pull tight, and padlock. You can purchase the cable in whatever length you need and have the loops put on for the padlock.