Can I do a short sale if I have a second mortgage?

Yes. Part of the short sell negotiation process is to make sure the debt of the second mortgage is forgiven. Even if you have two different lenders, it is more beneficial for the subordinate lender to settle with a short sale. If a property goes to foreclosure the second lender normally gets nothing.