That foam isn't really likely to offer much help in terms of soundproofing, I'd look more to building a bigger outer box and whacking some rockwool in it* with another box inside, the acoustic treatment foam would then be usefull for dispersing any unwanted sound reflections inside the box. It's not a bad idea though. :)
Edit: * Whilst wearing all necessary protective clothing, rockwool is pure evil.