Hochschild homology of structured algebras