"Is it possible to wipe clean my computer hard disc?"
"if so, will it affect its XP operating system"
Yes - wiping clean removes everything - absolutely everything
If you explain why and what you want to achieve - and what system you have - a more useful answer may be possible. For instance some systems have recovery information on them, which can re-install your software (inc XP) to how the system first came to you.