I've seen parrotfish do this many times, and what comes out, of course, is sand. If you want to see what comes out when sharks do it, just check out this video here. When snorkeling or free-diving around anchored boats I always keep a close eye on any through-hulls I spy for exactly this reason.