The answer is: the heat of reaction would be the same. This reaction is the combustion of methane gas. There is already an empirical value for heat of reaction. The only difference is how the experiment is carried out. The first one is at constant volume, while the other one is in constant pressure. Whatever the condition is, it will always lead to one theoretical value for heat released.