You need to retain counsel promptly and file a petition for custody. If you wife has been gone for less than six months, only a NY state court can issue a custody order. If the judge told her not to enroll your daughter in school in CA, but she did anyways, you need to ask for an immediate temporary order giving sole custody to you and ordering your daughter back to NY state.
What is your current custody arrangement? Also, what do your separation agreement say? It will probably not be enough to take full custody from your ex, however, you want to bring an action in New York to preserve jurisdiction (although you should already have it based on the current divorce order)
Petition for custody ASAP. There are strict time limitations on these matters and you want to ensure that a NY court can hear your case.
The above answer is intended for informational purposes and is not legal advice. It does not constitute the creation of an attorney-client relationship.
As counsel above has pointed out, there are time limitations so you should speak with an attorney or file your petition immediately.
The information transmitted shall not constitute as formal legal advice, nor shall it create an attorney/client relationship. If you seek formal legal advice you are recommended to speak with an attorney via a more formal setting such as over the phone or in person.