It could have different meanings, so it's really not clear.
Is the "do you swim" a habitual question (like: "do you swim often") or does it mean "can you swim"?
If it's the former, then your answer means that you do swim often. The "don't know how" could mean you don't know how you swim, it's just something that feels natural to you or it could mean you don't know how you find the time to swim often.
If it's the latter, then your answer means that you can swim. In the former answer you may have used something to help you swim, but in this answer you must be able to swim completely by yourself. The "don't know how" again refers to it being natural, something you can't explain.