If I pick up 100 pieces of random Styrofoam 99 to 100 pieces have the issue of high static potential. I'll leave why that is to you and the web. Fix it by a layer/cover of aluminum foil and this should abate the dust attraction due to the static build up as well.
My answer that with a little work, it's safe.
So i recently build a new gaming, an i dont want any dust getting on it, so i try to keep it elevated from the ground by putting my PC on top of the Styrofoam that came with my case.Is this safe, considering that Styrofoam conducts electricity? Also, do you think Styrofoam attracts dust?