I haven't found one, but I would check out Pelican They are really heavy duty and perfect should you want to check your gun for airline travel.
Buy one that is the correct size, and trace your M4 with a sharpie. Cut out the foam with a NEW razor blade. And there you go a custom case for your M4 with a collapsible stock.