I agree with @Charter here 100% There is no relation between HP and CC.
In order to know a cars hp from its CC you would need a lot of data on that specific engine and lot of calculation. You will have to know the efficiency of the engine and that would be again for that particular engine and still not be able to derive the correct figure or be close to it at all.
So it has been said before and going to be said again, there is no relationship between hp and CC.