I don't think it will void the warranty, does it say anything about adding parts like that? If you change the CPU, maybe. Something like adding RAM (approved by Gateway that is) or an optical drive should have no worries.
If you open the case and look you can see if there are free plugs. You'll have to do that anyway to install it.