at 10 weeks, I would bet he could hold it for like 3 hours at max, if your getting him out more than that. I would say he is ether marking his terrority or he hasn't put it together that he should pee outside.
generally this is what I do while they are really young. outside every 30minutes, 15minutes after eating or drinking anything (also put him in a crate till you take him out). you need to praise him and/or give treats when he goes outside. and when he pees inside, just simply say no in a firm tone, then take him outside on leash for 10minutes or so. the leash is to keep him from playing, cause if you take him out side and let him play after peeing he will think its a reward.
use the search and look for crate training. it will be a life saver.
Spreading the truth one minor post at a time or trying to learn what the truth is.