How would you even know that the kid is not yours? Unless you haven’t had any contact before she got pregnant. Anyway i don’t think it is possible to get paternity test without the consent of both parents so better confirm it together before making a decision i guess?