Hewlett-Packard reported a 32% drop in profit for its second fiscal quarter, due partly to slower sales of PCs and servers.