I think you'd have better luck smoking the ham and using the bone for stock, then making the soup. I guess the beans would get a coating of smoke on the outside, but since you need to presoak them, most of that would probably go down the drain with the soak water. Now, if you were to soak them overnight, then lay them out on some sort of perforated rack, THEN cold smoke them, they might pick up some flavor.