Any posts by unregistered users are attached to USER_ID 1. There's no built in way to locate all of them at once besides using a SQL command and even then becomes quite complex, because if the post has replies by registered users, then they need to be reattached to the topic.

Is there a specific reason you need to do this. Are there a lot of posts that need to be deleted, or just some?