Power the computer off first, then gently shake it loose — a Memory Stick Duo sits loosely enough in an SD slot that it usually slides out with a little coaxing.
If shaking does nothing, a pair of fine-tipped tweezers or a thin plastic spudger will grip the edge without scratching the contacts. Whatever you do, do not force it or pry with anything metal.