It’s not permissible, according to Ayatollah Sistani, for sperm of the non husband to be used
Regarding second part, yes but if it involves the exposing of the woman’s body in front of a non Mahrem it’s not permissible unless there is very pressing need to have a child since otherwise it causes unbearable hardship or distress, eg mental health issues