Generally, you can't. These are different quantities and a magnetic field can interact with material that HAS a magnetic moment. There are, however connections for different scenarios:
If a magnetic field creates a magnetization in a material, the relationship is given here: https://en.wikipedia.org/wiki/Magnetic_moment#Relation_to_magnetization
If your question would be what magnetic field a magnetic dipole creates, the formula for that would be the last one in this subsegment of the article: https://en.wikipedia.org/wiki/Magnetic_moment#Magnetic_field_of_a_magnetic_moment