Hello,
As far as I know, the section 'Course details' on a user's profile page is visible to everyone who can view the profile page i.e. users with the view user profiles capability.
Sorry I don't know how you can hide the information apart from preventing users from viewing profile pages of other users.