You can use following code to achieve this
if ( is_user_logged_in() ) {
// Editor without media buttons
wp_editor( $content, 'editorname', array('media_buttons' => false) );
} else {
// Editor with media buttons
wp_editor( $content, 'editorname');
}