Answer
(Fatwa: 935/882=D/1429)
The aforesaid method is undesirable because of being unnatural, also some more things against Shariah are found to be committed as it includes shameful and sinful acts (such as masturbation, ejaculating money thorough an un-Islamic way, stripping satr of woman unnecessarily and other things) which are Islamically prohibited. Therefore, it should be avoided to opt for such method. However, if a child is born to the wife, its pedigree will be from the husband.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband