Is there a program to find cpu IPC?

There are multiple IPC measurements. The most used is the Dhrystone benchmark.

You take the Dhrystone benchmark MIPS rating and divide it by the clock frequency of your processor and then again by the number of cores on your processor. This will give you the Dhrystone Instructions Per Clock

Here's a good reference: http://en.wikipedia.org/wiki/Million_instructions_per_second#Million_instructions_per_second

EDIT: Make sure you divide it by the number of physical execution cores on the processor, not the number of logically addressable threads (ie, ignore hyperthreading)