I don't feel like an expert about social networks and have most of my knowledge about social networks from Wikipedia and from own experience only, but I will try my best to give an answer that includes which common features of social networks are already present and which are not and how they could look like. Social networks are themselves somewhat heterogeneous and there is no clear-cut set of features, so I just take all that I can find.
What is already there:
- Stack Overflow is an interactive website with user generated content. The user generated content is restricted mostly to programming in form of questions and answers though.
- The revenue of the platform is created from the engagement between users, here indirectly by creating the content during the engagement but collecting the ad revenue later when visitors from search engines find the content.
- There are personal profiles depicting the activity of each user.
- There is tagging, there is commenting. Again tagging and commenting is mostly restricted to programming, with comments that are not longer necessary getting deleted.
- There is some sense of community. People use Meta to discuss site-wide issues.
Features that are not present on Stack Overflow but typically found on social networks include:
- Diary-style web logs, i.e. information about the daily activity of users. These could be text or video blogs. On Stack Overflow this would probably be mostly focused on daily programming activity. Chat could be a place where such information is exchanged, but the style of chat is not diary-style.
- Links between profiles of users, i.e. some kind of friends or followers functionality.
- Personal (private) messages between users, mostly between users and followers.
- A feed that highlights personal information from followed users by some kind of selection algorithm.
- Apparently, they need a purpose. They must be good for something. Stack Overflow's purpose is creating a knowledge base but also answering specific programming questions and therefore also learning. A social network like Stack Overflow could emphasize this learning aspect, for example by something like tutoring. Not sure how that would look like though.
Somewhat similar existing cases:
ResearchGate or Academia.edu: they are science related social networks, allowing scientists to connect with others by maintaining a publication list and some sort of CV but also the ability to ask questions and get them answered or take part in discussions. If one would replace science with programming, the publication list with tag badges and the CV with the developer story this could be somewhat similar to Stack Overflow as a social network. It could have two pillars, one concentrated on Q&A and the other on developer stories and connecting with others on a professional level.
Summary
I think that the main features that social networks have and Stack Overflow hasn't would be more extensive personal relationships, i.e. the ability to mark others as connected and to somehow get a compiled activity feed from them and to be able to communicate with them. Many other features of social networks are already present and after writing this answer I'm not sure anymore that Stack Overflow isn't already some kind of social network. I'm surprised, but it seems it's really only that (personal relations) mostly.
While it seems that only the personal relationships are missing mostly, they are also the most important part of a social network. For social networks it's main purpose is about maintaining a web of personal relations while Stack Overflow so far was mostly concerned with building up knowledge. And from the comments to this question it becomes clear that many people are convinced that personal relations and building up knowledge bases via Q&A are detrimental.