Check current post in the loop
<?php // Insert code after the second post if( 1 == $wp_query->current_post ): echo '<div>some text</div>'; endif; ?>