If the other parent is claiming your child as a dependent, you can still claim Head of Household if the child lived with you for more than 6 months.
In TurboTax, the "# of months" question will give you Head of Household and the "custody agreement" question will remove the dependency exemption.