instant coffee is better direct substitute for cocoa powder or alternatively you can brew some coffee and add it as a liquid ingredient, although this may require adjusting the recipe a bit so you don't end up with too much liquid in the mixture.