I've thought about doing that to a keyboard myself.  If you find out, I would like to know.  I would also like to know if it works normally with the speakers removed, or gives some kind of error on boot-up.  (To determine if the speakers are in good working condition, the board may check the circuit for an electrical resistance. If so, you could still fool it by inserting a component in their place.)