No existing spacecraft do this. Virtually all information is transmitted back to Earth.
As of 2017, there are only two spacecraft that have performed "sample return" missions:
- the Stardust Mission to comet Wild-2 (1999-2005), by NASA
- the Hayabusa Mission to asteroid 25143 Itokawa (2003-2010), by the Japanese Aerospace Exploration Agency.