Hydrogen bonds are not like covalent bonds. They are nowhere near as strong and you can't think of them in terms of a definite number like a valence. Polar molecules interact with each other and hydrogen bonds are an example of this where the interaction is especially strong. In your example you could represent it like this:
H2C=O---------H-OH
But you should remember that the H2O molecule will be exchanging constantly with others in the solvation shell of the formaldehyde molecule and these in turn will be exchanging with other H2O molecules in the bulk solution.
Formaldehyde in aqueous solution is in equilibrium with its hydrate.
H2C=O + H2O <-----------------> H2C(OH)2