If it has been acquired illegally, then the court is unlikely to admit it as evidence, but in family law cases, the usual rules of evidence don't apply. The court may accept it into evidence if it is deemed significant to the case, but this is not often the outcome. You can argue to have it struck out on grounds it was attained illegally.