It is as straight forward as Mr. Lutzky said. Just go to Family Court and file a petition. The only issue is that you will have to attempt to serve the mother. That may be a problem if she has been out of the picture for three years. Good luck.
File in family court where you live for custody. You will need to serve both the mother and the father. Contact a local family law attorney to help you.
If this answer is helpful, then please mark the helpful button. If this is the best answer, then please indicate it. Thanks. For further information you should see an attorney and discuss the matter completely. If you are in the New York City area, then you can reach me during normal business hours at 718 329 9500 or www.mynewyorkcitylawyer.com.