Hate to say it, but this is your daughter's problem. You can say he can't come to your house anymore, but unless she stops seeing this guy, you are just getting beat up for nothing. The ball is in her court to get a restraining order and not speak to or see him again. You can't protect her from herself. The fact that there will be a baby is going to make no contact with him very difficult. How does she plan to handle that.

And yes, without a doubt, moving out will affect you in a custody hearing.