Genetic testing can sometimes identify albinism during pregnancy, particularly if there is a family history of the condition.