First, make an appropriate entry for your specific ligand in residue.dict to define hydrogen bond donors and acceptors. Then, merge your protein and your ligand into one molecule and use the Hbonds_all command in O.