There's a chart on sheldonbrown.com for safe tire sizes. In any case, if you're sometimes lazy like me, you could cut a piece of cardboard to measure the outside width of the rim. Then you can deduct 4 or 5mm to estimate the inside width and look at the chart.