NEW YORK (Reuters) - Hewlett-Packard Co announced a deal to buy security software firm ArcSight Inc for $1.5 billion in a bid by the world's top personal computer maker to cash in on growing demand for security technology.