Not well. Chocolate powder for drinking carries sugar, milk powder and often real chocolate, while baking recipes expect plain cocoa and account for its drying character with extra liquid or fat. And where a bake relies on natural cocoa reacting with baking soda to rise, a sweetened drink mix will not do that job.
Cocoa powder is roasted, pressed and ground cocoa solids. Cacao powder generally means the same thing from beans processed at lower temperatures, though the naming is not tightly regulated. Drinking chocolate and hot chocolate mixes contain sugar, milk powder and often real chocolate, so they are a finished drink rather than a baking ingredient.
Cocoa powder is high in starch and fat and does not wet easily, so it forms lumps when tipped into hot liquid. Making a smooth paste with a splash of cold or warm liquid first and then thinning it solves the problem, which is what a proper hot chocolate method does and what an instant mix engineers around with emulsifiers.
In cakes, brownies, cookies and frostings, and dusted over finished bakes. It is a dry ingredient with drying properties, so recipes account for it with extra liquid or fat, and swapping it in freehand for flour tends to produce a dry crumb. Blooming it in hot liquid or coffee first deepens the flavor.
Cocoa contains caffeine and theobromine, so cocoa-heavy drinks are not caffeine-free, which is worth considering for children and in the evening. Store it airtight, cool and dark away from strong smells, and sieve out lumps rather than discarding a caked tin. Theobromine is toxic to dogs and cats, so keep cocoa powder and drinking chocolate well away from pets.